package com.hc.summary.hilt.module;

import com.hc.summary.hilt.annotation.BindTestOne;
import com.hc.summary.hilt.annotation.BindTestTwo;
import com.hc.summary.hilt.bean.TestInterface;
import com.hc.summary.hilt.bean.TestInterfaceBeanOne;
import com.hc.summary.hilt.bean.TestInterfaceBeanTwo;

import dagger.Binds;
import dagger.Module;
import dagger.hilt.InstallIn;
import dagger.hilt.android.components.ActivityComponent;

@InstallIn(ActivityComponent.class)
@Module
public abstract class TestInterfaceModule {
    @BindTestOne
    @Binds
    public abstract TestInterface generateTestInterfaceBeanOne(TestInterfaceBeanOne testInterfaceBeanOne);
    @BindTestTwo
    @Binds
    public abstract TestInterface generateTestInterfaceBeanTwo(TestInterfaceBeanTwo testInterfaceBeanTwo);
}
